const commands = [
  {
    name: 'undo',
    title: '撤销(Ctrl+Z)',
    icon: 'icon-undo',
    // handler(graph) {
    //   graph.history.undo()
    // }
  },
  {
    name: 'redo',
    title: '重做(Ctrl+Shift+Z)',
    icon: 'icon-redo',
  },
  {
    name: 'copy',
    title: '复制(Ctrl+C)',
    icon: 'icon-copy',
  },
  {
    name: 'cut',
    title: '剪切(Ctrl+X)',
    icon: 'icon-cut',
  },
  {
    name: 'paste',
    title: '粘贴(Ctrl+V)',
    icon: 'icon-paste',
  },
  {
    name: 'delete',
    title: '删除(Ctrl+D)',
    icon: 'icon-delete',
  },
  {
    name: 'print',
    title: '打印(Ctrl+P)',
    icon: 'icon-print',
  },
]

export { commands }
